home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / oji / nsIJVMPluginInstance.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  103 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIJVMPluginInstance.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIJVMPluginInstance_h__
  6. #define __gen_nsIJVMPluginInstance_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #include "jni.h"
  18.  
  19. /* starting interface:    nsIJVMPluginInstance */
  20. #define NS_IJVMPLUGININSTANCE_IID_STR "a0c057d0-01c1-11d2-815b-006008119d7a"
  21.  
  22. #define NS_IJVMPLUGININSTANCE_IID \
  23.   {0xa0c057d0, 0x01c1, 0x11d2, \
  24.     { 0x81, 0x5b, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a }}
  25.  
  26. class NS_NO_VTABLE nsIJVMPluginInstance : public nsISupports {
  27.  public: 
  28.  
  29.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJVMPLUGININSTANCE_IID)
  30.  
  31.   /* [noscript] void GetJavaObject (out jobject result); */
  32.   NS_IMETHOD GetJavaObject(jobject *result) = 0;
  33.  
  34.   /* [noscript] void GetText (in nChar result); */
  35.   NS_IMETHOD GetText(const char ** result) = 0;
  36.  
  37. };
  38.  
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIJVMPLUGININSTANCE \
  41.   NS_IMETHOD GetJavaObject(jobject *result); \
  42.   NS_IMETHOD GetText(const char ** result); 
  43.  
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  45. #define NS_FORWARD_NSIJVMPLUGININSTANCE(_to) \
  46.   NS_IMETHOD GetJavaObject(jobject *result) { return _to GetJavaObject(result); } \
  47.   NS_IMETHOD GetText(const char ** result) { return _to GetText(result); } 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  50. #define NS_FORWARD_SAFE_NSIJVMPLUGININSTANCE(_to) \
  51.   NS_IMETHOD GetJavaObject(jobject *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJavaObject(result); } \
  52.   NS_IMETHOD GetText(const char ** result) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(result); } 
  53.  
  54. #if 0
  55. /* Use the code below as a template for the implementation class for this interface. */
  56.  
  57. /* Header file */
  58. class nsJVMPluginInstance : public nsIJVMPluginInstance
  59. {
  60. public:
  61.   NS_DECL_ISUPPORTS
  62.   NS_DECL_NSIJVMPLUGININSTANCE
  63.  
  64.   nsJVMPluginInstance();
  65.  
  66. private:
  67.   ~nsJVMPluginInstance();
  68.  
  69. protected:
  70.   /* additional members */
  71. };
  72.  
  73. /* Implementation file */
  74. NS_IMPL_ISUPPORTS1(nsJVMPluginInstance, nsIJVMPluginInstance)
  75.  
  76. nsJVMPluginInstance::nsJVMPluginInstance()
  77. {
  78.   /* member initializers and constructor code */
  79. }
  80.  
  81. nsJVMPluginInstance::~nsJVMPluginInstance()
  82. {
  83.   /* destructor code */
  84. }
  85.  
  86. /* [noscript] void GetJavaObject (out jobject result); */
  87. NS_IMETHODIMP nsJVMPluginInstance::GetJavaObject(jobject *result)
  88. {
  89.     return NS_ERROR_NOT_IMPLEMENTED;
  90. }
  91.  
  92. /* [noscript] void GetText (in nChar result); */
  93. NS_IMETHODIMP nsJVMPluginInstance::GetText(const char ** result)
  94. {
  95.     return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97.  
  98. /* End of implementation class template. */
  99. #endif
  100.  
  101.  
  102. #endif /* __gen_nsIJVMPluginInstance_h__ */
  103.